package com.rslai.base.tool.servertest.transport.command;

import com.rslai.base.tool.servertest.model.KeyValueStore;
import com.rslai.base.tool.servertest.model.ServiceDesc;
import com.rslai.base.tool.servertest.response.Response;

import java.util.List;

public abstract class ExecuteCommand {
    protected String id;
    protected String desc;

    public ExecuteCommand(String id, String desc) {
        this.id = id;
        this.desc = desc;
    }

    public String getId() {
        return this.id;
    }

    public String getDesc() {
        return this.desc;
    }

    public abstract Response execute(List<KeyValueStore> paramList);

    public abstract String toReport();

    public abstract ServiceDesc desc();
}
